package Maquette.AnneeUniversitaire;

import java.awt.Color;
import java.awt.Font;
import javax.swing.GroupLayout;
import javax.swing.JButton;
import javax.swing.JComponent;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;
import javax.swing.LayoutStyle;
import javax.swing.border.BevelBorder;
import javax.swing.border.EtchedBorder;
import javax.swing.border.TitledBorder;

public class ModificationFormation extends JPanel {

	private JTextField informatiqueEtGestionTextField;
	private JTextField igTextField;
	/**
	 * Create the panel
	 */
	public ModificationFormation() {
		super();
		setBorder(new TitledBorder(null, "Modification de la formation", TitledBorder.DEFAULT_JUSTIFICATION, TitledBorder.DEFAULT_POSITION, new Font("Verdana", Font.BOLD, 12), null));
		setBackground(new Color(230, 230, 250));

		JButton validerButton;
		validerButton = new JButton();
		validerButton.setFont(new Font("@Arial Unicode MS", Font.BOLD, 12));
		validerButton.setText("Valider");

		JLabel nomDeLaLabel;
		nomDeLaLabel = new JLabel();
		nomDeLaLabel.setFont(new Font("@Arial Unicode MS", Font.BOLD, 12));
		nomDeLaLabel.setText("Nom de la formation:");

		JLabel descriptionDeLaLabel;
		descriptionDeLaLabel = new JLabel();
		descriptionDeLaLabel.setFont(new Font("@Arial Unicode MS", Font.BOLD, 12));
		descriptionDeLaLabel.setText("Description de la formation:");

		igTextField = new JTextField();
		igTextField.setBorder(new BevelBorder(BevelBorder.LOWERED));
		igTextField.setFont(new Font("@Arial Unicode MS", Font.PLAIN, 12));
		igTextField.setText(" IG");

		informatiqueEtGestionTextField = new JTextField();
		informatiqueEtGestionTextField.setText("Informatique et Gestion");
		informatiqueEtGestionTextField.setBorder(new BevelBorder(BevelBorder.LOWERED));
		informatiqueEtGestionTextField.setFont(new Font("@Arial Unicode MS", Font.PLAIN, 12));

		JButton annulerButton;
		annulerButton = new JButton();
		annulerButton.setFont(new Font("", Font.BOLD, 12));
		annulerButton.setText("Annuler");
		final GroupLayout groupLayout = new GroupLayout((JComponent) this);
		groupLayout.setHorizontalGroup(
			groupLayout.createParallelGroup(GroupLayout.Alignment.LEADING)
				.addGroup(groupLayout.createSequentialGroup()
					.addContainerGap(45, Short.MAX_VALUE)
					.addGroup(groupLayout.createParallelGroup(GroupLayout.Alignment.LEADING)
						.addGroup(GroupLayout.Alignment.TRAILING, groupLayout.createSequentialGroup()
							.addGroup(groupLayout.createParallelGroup(GroupLayout.Alignment.LEADING)
								.addComponent(nomDeLaLabel)
								.addComponent(descriptionDeLaLabel))
							.addGap(12, 12, 12)
							.addGroup(groupLayout.createParallelGroup(GroupLayout.Alignment.LEADING, false)
								.addComponent(igTextField)
								.addComponent(informatiqueEtGestionTextField, GroupLayout.DEFAULT_SIZE, 151, Short.MAX_VALUE))
							.addGap(37, 37, 37))
						.addGroup(GroupLayout.Alignment.TRAILING, groupLayout.createSequentialGroup()
							.addComponent(annulerButton)
							.addGap(56, 56, 56)
							.addComponent(validerButton)
							.addGap(92, 92, 92))))
		);
		groupLayout.setVerticalGroup(
			groupLayout.createParallelGroup(GroupLayout.Alignment.LEADING)
				.addGroup(groupLayout.createSequentialGroup()
					.addContainerGap()
					.addGroup(groupLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)
						.addComponent(nomDeLaLabel)
						.addComponent(igTextField, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
					.addGap(33, 33, 33)
					.addGroup(groupLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)
						.addComponent(descriptionDeLaLabel)
						.addComponent(informatiqueEtGestionTextField, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
					.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, 23, Short.MAX_VALUE)
					.addGroup(groupLayout.createParallelGroup(GroupLayout.Alignment.LEADING)
						.addComponent(validerButton)
						.addComponent(annulerButton))
					.addGap(20, 20, 20))
		);
		setLayout(groupLayout);
		//
	}

}
